package com.example.blog.service;

import com.example.blog.util.JsonResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: lu
 * @Date: 2023-11-23-16:33
 * @Description:  文件上传
 */
public interface FileService {
     JsonResult uploadFile(MultipartFile multipartFile);

     void downloadFile(String name, HttpServletResponse response);

     JsonResult uploads(HttpServletRequest request);

     //JsonResult uploadFiles(MultipartFile[] files);

}
